package com.demo.util;

public class JsonResult {
	
	private boolean success;

    private String status;

    private String msg;

    private Object obj;
    
    public JsonResult() {
    	
    }
    
    public JsonResult(boolean success,String status,String msg,Object obj) {
    	this.success = success;
    	this.status = status;
    	this.msg = msg;
    	this.obj = obj;
    }
    
    public JsonResult(String status,String msg,Object obj) {
    	this.success = true;
    	this.status = status;
    	this.msg = msg;
    	this.obj = obj;
    }
    
    public JsonResult(String msg,Object obj) {
    	this.success = true;
    	this.status = "200";
    	this.msg = msg;
    	this.obj = obj;
    }
    
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
	
}
